import ajax from './index'



//现金券订单列表
export function cashcouponorderList(url){

     return ajax.get('/admin/order/cash_coupon_order/list?'+url)
}


//商品订单列表
export function orderproductorderList(url){
    return ajax.get('/admin/order/product_order/list?'+url)
}

//商品订单详情
export function  orderProductDetailData(url){
    return ajax.get('/admin/order/cash_coupon_order/detail?order_no='+url)
}

//现金券列表
export function activityCashCouponList(url){
    return ajax.get('/admin/activity/cash_coupon/list?'+url)
}

//现金券详情
export function activityCashCouponInfo(url){
    return ajax.get('/admin/activity/cash_coupon_info?'+url)
}
//现金券删除
export function activityDeleteCashCoupon(data){
    return ajax.post('/admin/activity/delete_cash_coupon',data)
}
//现金券购买记录
export function activityCouponBuyRecord(url){
    return ajax.get('/admin/activity/coupon_buy_record?'+url)
}

//现金券下架
export function activityDownCashCoupon(data){
    return ajax.post('/admin/activity/downCashCoupon',data)
}

